Returns the character that corresponds to the specified character code.
指定された文字コードに対応する文字を返します。
Chr(Expression As Integer)
Chr(Expression As Integer)
String
文字列
Expression: Numeric variables that represent a valid 8 bit ASCII value (0-255) or a 16 bit Unicode value.
Expression: 8 ビットの ASCII 値 (0-255) ないしは 16 ビットの Unicode 値を示す数値変数を指定します。
Use the Chr$ function to send special control sequences to a printer or to another output source. You can also use it to insert quotation marks in a string expression.
Chr$ 関数は、プリンタなどの出力装置に対して、制御用の特殊なシーケンスを送信する際に使用します。また文字列中に引用符を挿入する場合にも使用できます。
sub ExampleChr
sub ExampleChr
REM This example inserts quotation marks (ASCII value 34) in a string.
REM このサンプルは、引用符 (ASCII 値 34) を文字列中に挿入します。
MsgBox "A "+ Chr$(34)+"short" + Chr$(34)+" trip."
MsgBox "A "+ Chr$(34)+"short" + Chr$(34)+" trip."
REM The printout appears in the dialog as: A "short" trip.
REM ダイアログには A "short" trip. と表示されます。
end sub
end sub